<extend name="Public:base" />
<block name="main">
    <div class="formRight">
    {:b_form_header('编辑管理员')}
    <php>if ($vo['username']) {</php>
    {:b_label('账号',$vo['username'])}    
    <php>} else {</php>
    {:b_text('账号','username',$vo['username'])}
    <php>}</php>
    {:b_pwd('密码','password')}
    {:b_pwd('确认密码','repassword')}        
	<!-- {:b_permission('权限节点','permission[]','admin_node_list',$vo['permission'],'多选权限,请按住Ctrl')}    -->
        <php> 
            $res = D('Role')->field('role_id,role_name')->select();
        </php>
    <div class="control-group">
		<label for="typeahead" class="control-label">角色</label>
			<div class="controls">
                            <select class="" id="admin_t" name="admin_t">
                                <option value="0">==请选择==</option>
                                <php>
                                  foreach($res as $key=>$val){
                                </php>
                               
                                    <option value="<php> echo $val['role_id'];</php>" 
                                      <php>if($vo['admin_t'] == $val['role_id']){ echo "selected=selected";}</php> > <php> echo $val['role_name'];</php></option>
                             <php>
                                  }  
                                
                                </php>
                            </select>
				
		  </div>
    </div>
    {:b_select('状态','state','state',$vo['state'])}
    {:b_hidden('id',$vo['id'])}
    {:b_form_footer()}
    </div>   
</block>